package com.youlai.boot.sportPlan.model.form;

import java.io.Serial;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;
import jakarta.validation.constraints.*;

/**
 * 用户饮食计划表单对象
 *
 * @author cuisheng
 * @since 2025-03-31 13:11
 */
@Getter
@Setter
@Schema(description = "用户饮食计划表单对象")
@JsonIgnoreProperties(ignoreUnknown = true)
public class SportPlanForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "用户ID（关联用户表）")
    private Long userId;

    @Schema(description = "计划日期")
    @NotNull(message = "计划日期不能为空")
    private LocalDate planDate;

    @Schema(description = "运动ID（关联 sport 表）")
    @NotNull(message = "运动ID（关联 sport 表）不能为空")
    private Long sportId;

    @Schema(description = "运动时常")
    @NotNull(message = "运动时常不能为空")
    private Long quantity;

    @Schema(description = "能量")
    private Double energy;


}
